#include <iostream>
#include <fstream>
#include <ctime>
#ifndef RENTAL_H
#define RENTAL_H

class Rental {
    public:
        // CONSTRUCTOR
        Rental() {}
        Rental(const std::string&, const std::string&);

        // OPERATORS
        friend std::ifstream& operator>>(std::ifstream&, Rental&);
        friend std::ofstream& operator<<(std::ofstream&, const Rental&);
        friend std::ostream& operator<<(std::ostream&, const Rental&);
        friend bool operator==(const Rental&, const Rental&);

        // SET
        void setB_ID(const std::string &a) { b_ID = a; }
        void setM_ID(const std::string &a) { m_ID = a; }
        void setFrom(const time_t &a) { from = a; }
        void setTo(const time_t &a) { to = a;}

        // GET
        std::string getB_ID() const { return b_ID; }
        std::string getM_ID() const { return m_ID; }
        time_t getFrom() const { return from; }
        time_t getTo() const { return to;}

    private:
        std::string b_ID;
        std::string m_ID;
        time_t from;
        time_t to;

};

#endif // RENTAL_H
